package com.homework.module6part2.service.impl;

import com.homework.dao.domain.User;
import com.homework.dao.mapper.UserMapper;
import com.homework.module6part2.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    protected UserMapper userMapper;

    public User getUser(User user) {
        User u = userMapper.findUser(user);
        return u;
    }
}
